math olympiad algebra problem